/*
 *	(*^。^*) TFrameWork License (*^。^*)
 */

/*
 *  Title :
 *
 *  Description :
 *
 *
 *  Date :
 *
 *  Author : DengPing
 *
 *  Modify :
 */
using UnityEngine;

namespace TFrameWork.Module.ActionEditor
{
    public abstract class CustomOnRecordTrack : IOnRecordTrack
    {
        public TrackEventBase eventData { get; protected set; }
        public TimeLineAction timeLineAction { get;protected set; }
        public int currentFrame { get; set; }

        public virtual void Init(TimeLineAction timeLineAction)
        {
            this.timeLineAction = timeLineAction;
        }

        public virtual void OnStart(TrackEventBase data)
        {
            this.eventData = data;
        }

        public virtual void OnUpdate(int currentFrame)
        {
            this.currentFrame = currentFrame;
        }

        public virtual void OnFinish()
        {
            
        }

        public virtual void OnBreak(BreakType type)
        {
            
        }

        public virtual void ApplyRecord()
        {
            
        }
    }

}